
const state = {
  forcedBtnHide: false,
  isSave: false
}

const mutations = {
  TOGGLE_FORCEDBTNHIDE: (state, show) => {
    state.forcedBtnHide = show
  },
  TOGGLE_SAVE: (state, show) => {
    state.isSave = show
  }
}

const actions = {
  toggleForcedBtnHide({ commit }, show) {
    commit('TOGGLE_FORCEDBTNHIDE', show)
  },
  toggleSave({ commit }, show) {
    commit('TOGGLE_SAVE', show)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
